package com.bbm.bbmanage.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.bbm.bbmanage.entity.House;
import com.bbm.bbmanage.entity.dto.HouseDTO;
import com.bbm.bbmanage.entity.vo.ResponseResult;


/**
 * (House)表服务接口
 *
 * @author lionkliu
 * @since 2023-12-06 10:28:22
 */
public interface HouseService extends IService<House> {
    ResponseResult selectPage(Integer pageNum, Integer pageSize);

    ResponseResult selectOne(Long id);

    ResponseResult insertOne(House house);

    ResponseResult deleteById(Long id);

    ResponseResult updateOne(House house);

    ResponseResult getHousePage(Integer pageNum, Integer pageSize);

    ResponseResult getByCategoryId(Long id);

    ResponseResult getByHouseId(Long id);

    ResponseResult searchByTitle(String title, Integer price, Integer stars);

    ResponseResult search(Integer pageNum, Integer pageSize, String title, String address);

    ResponseResult insertHouseDetail(HouseDTO houseDTO);

    ResponseResult filter(String address, Integer price, Integer stars, String title);
}

